package com.etl.dataflow.common.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Map;

/**
 * @author dx
 * @since 2022/4/20
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TaskParam {
    /**
     * 源库
     */
    private JdbcProperties src;

    /**
     * 目的库
     */
    private JdbcProperties dst;

    private String srcTableName;

    private String dstTableName;

    private String selectSql;

    private Integer fetchSize;

    private Integer bufferSize;

    /**
     * 扩展字段用于存储其他信息
     */
    private Map<String, Object> extensionMap;
}
